package com.darren.center.design.patterns.action;

import com.darren.center.design.patterns.command.AbstractAction;
import com.darren.center.design.patterns.command.ActionMapper;
import com.darren.center.design.patterns.dto.Context;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * <h3>design-patterns</h3>
 * <p></p>
 *
 * @author : Darren
 * @date : 2021年06月14日 20:03:06
 **/
@Service("open-MyAction1")
public class MyAction1 extends AbstractAction {

    private static final Logger logger = LoggerFactory.getLogger(MyAction1.class);

    /**
     * 0-默认 1：预约挂号缴费2：当天挂号缴费3：门诊缴费4：住院押金缴费
     */

    private static final String DEFAULT_BIZ = "0";
    private static final String PRE_REGISTER = "1";
    private static final String CURR_REGISTER = "2";
    private static final String OUT_PATIENT = "3";
    private static final String IN_PATIENT = "4";
    private static final String PATCARD_RECHARGE = "5";
    private static final String TAKE_REGISTER = "6";

    /**
     * 平台支持当面付渠道
     */
    private static final String[] PAY_MODE_ARRAY = {"WX","ZFB"};

    @Value("${oservice.money.limit:-1}")
    private Integer MONEY_LIMIT;

    @Autowired
    public MyAction1(@Value("${open.service.code.MyAction1:MyAction1}") String serviceCode,
                        @Qualifier("open-action-ActionMapper") ActionMapper actionMapper) {
        super(serviceCode, actionMapper);
    }

    @Override
    public String doAction(String reqXml, Context context) throws Exception {
        return null;
    }

}

